<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterBaseSupplierAddTypeValue extends Migrator
{
    public function up()
    {
       $sql = <<<SQL
        UPDATE `base_supplier` SET `type` = 'coupon' where `code` = 'YiQiDa' and serv_type = '3';
SQL;
        $this->execute($sql);
    }

    public function down()
    {
        $sql = <<<SQL
            UPDATE `base_supplier` SET `type` = '' where `code` = 'YiQiDa' and serv_type = '3';
SQL;
        $this->execute($sql);
    }
}
